#include "StdAfx.h"
#include "Fish.h"


Fish::Fish(void)
:m_name( "defaultFishName" ),
 m_model_path( "defaultFishModel" ),
 m_scale( 1.0f )
{
}

Fish::Fish( const std::string name, const std::string model_path, const float scale )
:m_name(name),
 m_model_path(model_path),
 m_scale(scale)
{
}

Fish::Fish( const Fish &r )
:m_name( r.m_name ),
 m_model_path( r.m_model_path ),
 m_scale( r.m_scale )
{
}

Fish::~Fish(void)
{
}

bool Fish::operator != (const Fish &r)
{
	return ( m_name != r.m_name || m_model_path != r.m_model_path || m_scale != r.m_scale );
}

bool Fish::operator == (const Fish &r)
{
	return ( m_name == r.m_name && m_model_path == r.m_model_path && m_scale == r.m_scale );
}

Fish& Fish::operator = (const Fish &r)
{
	if(*this != r) {
		m_name			= r.m_name;
		m_model_path	= r.m_model_path;
		m_scale			= r.m_scale;
	}

	return *this;
}

std::string Fish::getName( void ) const
{
	return m_name;
}

void Fish::setName( const std::string name )
{
	m_name = name;
}

std::string Fish::getModelPath( void ) const
{
	return m_model_path;
}

void Fish::setModelPath( const std::string model_path )
{
	m_model_path = model_path;
}

float Fish::getScale( void ) const
{
	return m_scale;
}

void Fish::setScale( const float scale )
{
	m_scale = scale;
}